package com.itcam.cm.feign.user;

import com.itcam.cm.model.entity.user.UserAddress;
import com.itcam.cm.model.entity.user.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-user")// ip:port
public interface UserFeignClient {

    @GetMapping("/api/user/userInfo/auth/checkUserInfo/{token}")
    public UserInfo checkUserInfo(@PathVariable String token);

    @GetMapping("/api/user/userAddress/auth/getUserAddress/{userAddressId}")
    UserAddress getUserAddress(@PathVariable Long userAddressId);
}
